package com.hourses.mapper;

import com.hourses.pojo.Auth;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface AuthMapper {
    //根据userId查询用户权限下的所有菜单的方法
    public List<Auth> selectAuthByUserId(Integer userId);

    //获取所有的auth
    public List<Auth> selectAllAuths();
}